#include "userwidget.h"
#include "ui_userwidget.h"

userwidget::userwidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::userwidget)
{
    ui->setupUi(this);
    //设置窗口
    this->resize(400,800);
    this->setWindowTitle("QQ");
    this->setWindowIcon(QIcon(QPixmap(QString(":/new/prefix1/pic/QQ.jpg"))));
    //字体
    QFont font;
    font.setBold(true);
    font.setPixelSize(14);
    //
    label = new QLabel();
    label->setPixmap(QPixmap(QString(":/new/prefix1/pic/hand.jpeg")).scaled(50,50));
    nameLabel = new QLabel(QString("悉尼故事"));
    nameLabel->setFont(font);
    nameLayout = new QHBoxLayout();
    nameLayout->addWidget(label);
    nameLayout->addWidget(nameLabel);






    mainLayout = new QVBoxLayout();
    mainLayout->addLayout(nameLayout);

    this->setLayout(mainLayout);


}

userwidget::~userwidget()
{
    delete ui;
}
